-- GENERATED SPELL FOR [Morbid Carcass] --


function spell0_29719(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29719', 615, 1)
end

function spell1_29719(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29719', 1000, 1)
end

function Sorts_29719(pUnit, Event)
local choix_sorts_29719 = math.random(0, 1)
if choix_sorts_29719 == 0 then
pUnit:RegisterEvent('spell0_29719', 1, 1)
end
if choix_sorts_29719 == 1 then
pUnit:RegisterEvent('spell1_29719', 1, 1)
end
end

function mob29719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29719', math.random(1500, 3000), 1)
end

function mob29719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29719, 1, 'mob29719_Action')
RegisterUnitEvent(29719, 2, 'mob29719_Leave')
RegisterUnitEvent(29719, 3, 'mob29719_Kill')
RegisterUnitEvent(29719, 4, 'mob29719_Die')
